<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Gestion utilisateurs</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link rel="stylesheet" type="text/css" href="../default.css" />
        <script type="text/javascript" src="../jquery.js"></script>
        <script type="text/javascript" src="../scripts.js"></script>

    </head>
    <body>
        <div id="upbg"></div>
        <div id="outer">

            <?php
            include '../headerAdmin.php';
            include '../menuAdmin.php';
            ?>
            <div id="content">

                <?php
                include_once '../connectBDD.php';

                //Recherche Personnes
                $result = mysql_query("SELECT login FROM User where type = 'U'");
                $nb_res = mysql_num_rows($result);
                echo"<div class='sousTitreInfoInscription'>Gestion des membres</div>";
                echo"<div id='content_util'>";
                echo "<div style='color:green'>$nb_res membre(s) trouvé(s)</div>";
                
                if (mysql_num_rows($result) <= 0) {
                    echo "<div class='no_result_found'>Aucun membre.</div>";
                } else {
                    echo "<div class='utilisateurs'>";
                    while ($row = mysql_fetch_assoc($result)) {

                        echo"
                         <div id='utilisateur'>
                            <a href='../profil.php?login=" . $row['login'] . "'>" . $row['login'] . "</a>
                            <a class='croix_ferm' href=\"javascript:supprimerUtilisateur('" . $row['login'] . "')\"><img src='../images/Close-32.png' height='15px' width='15px'/></a>
                         </div>";
                    }
                    echo "</div>";
                }
                echo "</div>";
                ?>

            </div>

            <?php
            include '../footer.php';
            ?>

    </body>
</html>

